import { SkillListPanel } from "../SkillListPanel";
import { SkillInfo } from "../../../model/SkillInfo";
import { Cache } from "../../../cache/Cache";
import { SkillItem } from "../SkillItem";
import { ToolTipInfo } from "../../../model/ToolTipInfo";
type int = number;
//class SkillCareerMapPanel
    
    export  class SkillCareerMapPanel extends SkillListPanel
    {
        constructor()
        {
            super();
            this._skillItems = [];
            return;
        }

        public get skillItems(): Array<any>
        {
            return this._skillItems;
        }

        public /* override */ initSkill(arg1: Array<any>): void
        {
            this._list = arg1;
            mouseEnabled = false;
            mouseChildren = false;
            return;
        }

        protected onFlyEnd(arg1: Object /* flash.display.Bitmap */): void
        {
            arg1.parent.removeChild(arg1);
            arg1 = null;
            return;
        }

        public /* override */ updateSkill(arg1: SkillInfo): SkillInfo
        {
            return null;
        }

        public /* override */ updateCondition(): void
        {
            var loc1=0;
            var loc3=null;
            var loc2=Cache.instance.skill.skillMaps.length;
            while (loc1 < loc2) 
            {
                loc3 = Cache.instance.skill.skillMaps[loc1];
                this.refreshSkill(loc3.position, loc3);
                ++loc1;
            }
            return;
        }

        public /* override */ guideLevelUp(arg1: Array<any>, arg2: Boolean): SkillInfo
        {
            return null;
        }

        public /* override */ guideLevelUpClear(): void
        {
            return;
        }

        public /* override */ itemClick(arg1: int): void
        {
            return;
        }

        public /* override */ autoUseAble(arg1: SkillInfo): void
        {
            return;
        }

        protected /* override */ refreshSkill(arg1: int, arg2: SkillInfo): void
        {
            return;
        }

        protected getToolTipData(arg1: SkillItem): ToolTipInfo
        {
            return (arg1.data as SkillInfo).getToolTipInfo();
        }

        protected /* var */_list: Array<any>;

        protected /* var */_skillItems: Array<any>;

        protected /* var */_clickIndex: int;

        protected /* var */_clickNext: int=-1;

        protected /* var */_lastUpdateInfo: SkillInfo;
    }
